﻿<%@ Page Title=""  Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="OpcionForm.aspx.cs" Inherits="Tambini.Web.OpcionForm" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxHtmlEditor.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxHtmlEditor" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxSpellChecker.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxSpellChecker" tagprefix="dx" %>

<asp:Content ID="Content2" ContentPlaceHolderID="id_transfiter" runat="server">
    <script type="text/javascript">
    function soloLetras(e) {
        key = e.keyCode || e.which;
        tecla = String.fromCharCode(key).toLowerCase();
        letras = " áéíóúabcdefghijklmnñopqrstuvwxyz";
        especiales = [8, 32, 37, 39, 46];
        tecla_especial = false
        for (var i in especiales) {
            if (key == especiales[i]) {
                tecla_especial = true;
                break;
            }
        }

        if (letras.indexOf(tecla) == -1 && !tecla_especial) {
            return false;
        }
    }
</script>
<script type="text/javascript">
    function soloLetrasNumeros(e) {
        key = e.keyCode || e.which;
        tecla = String.fromCharCode(key).toLowerCase();
        letras = " áéíóúabcdefghijklmnñopqrstuvwxyz1234567890";
        especiales = [46];
        tecla_especial = false
        for (var i in especiales) {
            if (key == especiales[i]) {
                tecla_especial = true;
                break;
            }
        }

        if (letras.indexOf(tecla) == -1 && !tecla_especial) {
            return false;
        }
    }
</script>
  

  <script type="text/javascript">
    // <![CDATA[

      function ShowEliminar() {
          popupEliminar.Show();

      }
      function ShowSeleccionarOpcion() {
          popupmsj.Show();

      }

      function ShowOK() {
          popupOK.Show();
      }

      function ShowModificar() {
          popupModificar.Show();
       }

       function ShowVacios() {
           popupVacios.Show();
       }

       function ShowDescripcion() {
           popupDescripcion.Show();
       }
       

    // ]]> 
    </script>

   
   
 <table>
 <tr>
 <td>
 
     <dx:ASPxButton ID="btnNuevoV2" runat="server" Text="Nuevo" 
         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
         CssPostfix="Office2010Blue" onclick="btnNuevoV2_Click" 
         SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
     </dx:ASPxButton>
 
 
 </td>
 <td>
     <dx:ASPxButton ID="btnGrabarv2" runat="server" Text="Grabar" 
         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
         CssPostfix="Office2010Blue" onclick="btnGrabarv2_Click" 
         SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
     </dx:ASPxButton>
 
 
 </td>
 <td>
 
     <dx:ASPxButton ID="btnEliminarv2" runat="server" Text="Eliminar" 
         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
         CssPostfix="Office2010Blue" onclick="btnEliminarv2_Click" 
         SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
     </dx:ASPxButton>
 
 
 
 
 </td>
 <td>
 
 
     <dx:ASPxButton ID="btnSalirv2" runat="server" Text="Salir" 
         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
         CssPostfix="Office2010Blue" 
         SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
         onclick="btnSalirv2_Click">
     </dx:ASPxButton>
 
 
 </td>
 <td>
 
 
     &nbsp;</td>
 
 </tr>
 
 
 </table>

 <center>
 <dx:ASPxPopupControl ID="popupOK" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupOK" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
             Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel5" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent5" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                            Se grabó la opción correctamente !</td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <table align="center">
                        <tr>
                        
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton8" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupOK.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupEliminar" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupEliminar" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
             Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent1" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                            Se eliminó correctamente !</td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        
                        </table>
                        <table align="center">
                            <tr>
                        <td>
                            <dx:ASPxButton ID="btnAceptar" runat="server" AutoPostBack="False" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupEliminar.Hide();
}" />
                            </dx:ASPxButton>
                            </td>
                        
                        </tr>
                        </table>

                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupConfirmar" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupConfirmar" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
             Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent3" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                        ¿Estas seguro de eliminar la opción?</td>
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <table align="center">
                         <tr>
                        
                        <td align="center">
                        
                            <dx:ASPxButton ID="btnEliminarOk" runat="server" AutoPostBack="False" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                Width="10px" OnClick="btnEliminarOk_Click">
                                <ClientSideEvents Click="function(s, e) {
	popupConfirmar.Hide();
}" />
                            </dx:ASPxButton>
                        
                        </td>
                       
                        <td align="center">
                        
                            <dx:ASPxButton ID="btnCancelar" runat="server" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Cancelar" 
                                Width="40px">
                                <ClientSideEvents Click="function(s, e) {
	popupConfirmar.Hide();
}" />
                            </dx:ASPxButton>
                            </td>
                        
                        </tr>
                        
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
     <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupmsj" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
             Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" 
                         SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel6" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent6" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                        <dx:ASPxLabel ID="lblmsj" runat="server">
                            </dx:ASPxLabel>
                            </td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <table align="center">
                        <tr>
                        
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton9" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupmsj.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupModificar" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupModificar" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
             Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" 
                         SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel7" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent7" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                         Se actualizo correctamente !</td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        
                        </table>
                        <table align = "center">
                         <tr>
                        
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton10" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupModificar.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupVacios" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupVacios" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
             Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" 
                         SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent2" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                         Rellene los campos vacios !</td>
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <table align="center">
                           <tr>
                        
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton2" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupVacios.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
</center>

        <dx:ASPxPopupControl ID="popupDescripcion" runat="server" AllowDragging="True" 
            ClientInstanceName="popupDescripcion" CloseAction="CloseButton" 
            CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
            EnableViewState="False" HeaderText="Mensaje" 
            LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
            PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
        Width="300px">
            <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
            </LoadingPanelImage>
            <CloseButtonStyle>
                <Paddings Padding="0px" />
            </CloseButtonStyle>
            <ContentStyle>
                <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
            </ContentStyle>
            <HeaderStyle>
            <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                PaddingTop="4px" />
            </HeaderStyle>
            <ContentCollection>
                <dx:PopupControlContentControl ID="PopupControlContentControl7" runat="server" 
                    SupportsDisabledAttribute="True">
                    <br />
                    <dx:ASPxPanel ID="ASPxPanel8" runat="server" DefaultButton="btCreate">
                        <PanelCollection>
                            <dx:PanelContent ID="PanelContent8" runat="server">
                                <table align="center">
                                    <tr>
                                        <td colspan="2">
                                            &nbsp;<dx:ASPxHtmlEditor ID="hteDescripcion" runat="server">
                                                <SettingsImageUpload>
                                                    <ValidationSettings AllowedFileExtensions=".jpe, .jpeg, .jpg, .gif, .png" MultiSelectionErrorText="Attention! 

The following {0} files are invalid because they exceed the allowed file size ({1}) or their extensions are not allowed. These files have been removed from selection, so they will not be uploaded. 

{2}">
                                                    </ValidationSettings>
                                                </SettingsImageUpload>
                                                <SettingsImageSelector>
                                                    <CommonSettings AllowedFileExtensions=".jpe, .jpeg, .jpg, .gif, .png" />
                                                </SettingsImageSelector>
                                                <SettingsDocumentSelector>
                                                    <CommonSettings AllowedFileExtensions=".rtf, .pdf, .doc, .docx, .odt, .txt, .xls, .xlsx, .ods, .ppt, .pptx, .odp" />
                                                </SettingsDocumentSelector>
                                            </dx:ASPxHtmlEditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <dx:ASPxButton ID="ASPxButton11" runat="server" AutoPostBack="False" 
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                CssPostfix="Office2010Blue" 
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar" 
                                                Width="10px">
                                                <ClientSideEvents Click="function(s, e) {
	popupDescripcion.Hide();
	
}" />
                                            </dx:ASPxButton>
                                        </td>
                                        
                                    </tr>
                                </table>
                            </dx:PanelContent>
                        </PanelCollection>
                    </dx:ASPxPanel>
                </dx:PopupControlContentControl>
            </ContentCollection>
        </dx:ASPxPopupControl>


 <div class="content-form"> 

     <asp:Panel ID="pnlMensaje" runat="server" CssClass="mensaje-form">
         <asp:Label ID="lblMensaje" runat="server" Text=""></asp:Label>
     </asp:Panel>
          
     <div class="formulario-opcion" style="float:left;padding:20px 0 0 5px;">                    
        
         <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" Width="200px" 
             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
             CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
             GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
             HeaderText="Agregar nueva opción" 
             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
             <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                 PaddingTop="10px" />
             <HeaderStyle>
             <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                 PaddingTop="3px" />
             </HeaderStyle>
             <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    
     <table cellpadding="0" cellspacing="0" border="0" class="tabla-form">
                <tr>
                	<td class="tb-label">Codigo opción</td> 
                </tr>
                <tr>
                    <td>
                        <dx:ASPxTextBox ID="txtCodigo" runat="server" ClientEnabled="False" 
                            Width="240px">
                            <ValidationSettings ErrorText="Valor inválido">
                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                        <asp:HiddenField ID="hfIdPadre" runat="server" />
                    </td>  
                </tr>
                <tr>
                	<td class="tb-label">Nombre opción</td> 
                </tr>
                <tr>
                    <td>
                        <dx:ASPxTextBox ID="txtNombre" onkeypress="return soloLetrasNumeros(event)" runat="server" Width="240px">
                        </dx:ASPxTextBox>
                    </td>  
                </tr>  
                <tr>
                	<td class="tb-label">Objetivo</td> 
                </tr>
                <tr>
                    <td>
                        <dx:ASPxMemo ID="txtObjetivo" runat="server" Height="71px" Width="240px">
                            <ValidationSettings ErrorText="Valor inválido">
                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                            </ValidationSettings>
                        </dx:ASPxMemo>
                    </td>  
                </tr>
                <tr>
                    <td style="padding-top:10px">
                        <dx:ASPxButton ID="btnDescripcion" runat="server" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                            Text="Agregar descripción" AutoPostBack="False" Visible="False">
                            <ClientSideEvents Click="function(s, e) {
	popupDescripcion.Show();
}" />
                        </dx:ASPxButton>
                    </td>
                </tr>  
                <tr>
                	<td class="tb-label">Tipo</td> 
                </tr>
                <tr>
                    <td>
                        <dx:ASPxComboBox ID="ddlTipo" runat="server" 
                            LoadingPanelText="Cargando&amp;hellip;" SelectedIndex="0">
                            <Items>
                                <dx:ListEditItem Selected="True" Text="Seleccione" />
                                <dx:ListEditItem Text="WebForm" Value="W" />
                                <dx:ListEditItem Text="Reporte" Value="R" />
                            </Items>
                            <ValidationSettings ErrorText="Valor inválido">
                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                            </ValidationSettings>
                        </dx:ASPxComboBox>
                    </td>  
                </tr>
                <tr>
                	<td class="tb-label">Dirección de la opción</td> 
                </tr>
                <tr>
                    <td>
                        <dx:ASPxTextBox ID="txtUrl" onkeypress="return soloLetrasNumeros(event)" runat="server" Width="240px">
                        </dx:ASPxTextBox>
                    </td>  
                </tr> 
                <tr>
                    <td class="tb-label">Orden dentro del grupo.</td>                    
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="ddlOrden" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                	<td class="tb-label">Estado</td> 
                </tr>               
                <tr>
                    <td>
                        <dx:ASPxComboBox ID="ddlEstado" runat="server" 
                            LoadingPanelText="Cargando&amp;hellip;" SelectedIndex="0">
                            <Items>
                                <dx:ListEditItem Selected="True" Text="Seleccione" Value="Seleccione" />
                                <dx:ListEditItem Text="Activo" Value="A" />
                                <dx:ListEditItem Text="Inactivo" Value="I" />
                            </Items>
                            <ValidationSettings ErrorText="Valor inválido">
                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                            </ValidationSettings>
                        </dx:ASPxComboBox>
                    </td>  
                </tr>                       
             </table> 



                 </dx:PanelContent>
</PanelCollection>
         </dx:ASPxRoundPanel>
        
     </div>



     <div class="content-tree" style="float:left;padding:20px 0 0 50px;">     

         <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="200px" 
             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
             CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
             GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
             HeaderText="Seleccione opción" 
             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
             <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                 PaddingTop="10px" />
             <HeaderStyle>
             <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                 PaddingTop="3px" />
             </HeaderStyle>
             <PanelCollection>
<dx:PanelContent ID="PanelContent4" runat="server" SupportsDisabledAttribute="True">
  
  
            <div class="listado-tree">            
                 <asp:TreeView ID="tvOpciones" runat="server" ShowCheckBoxes="All" 
                     onselectednodechanged="tvOpciones_SelectedNodeChanged">                   
                </asp:TreeView>            
            </div>




                 </dx:PanelContent>
</PanelCollection>
         </dx:ASPxRoundPanel>

         
     </div>



     <div style="clear:both">
     </div>
 </div>

 <div class="modal-dialog" runat="server" id="divDescripcion" style="display:none; width:750px;">
         <div class="popup-header">
             <div class="popup-title" runat="server" id="divDescripcionMove">
                 Descripción de la opción
             
             <div class="content-message">
                    Por favor ingrse la descripción de la opción y presione Aceptar"
             </div>        
             <div style="margin-top:10px" ></div>
             <cc1:Editor ID="eDescripcion" runat="server" Height="300" />  
             <div style="width:200px; text-align:center; margin:auto; margin-top:10px">
                <img src="Images/btnaceptar.png" alt="Aceptar" onclick="cerrarDescripcion()" style="cursor:pointer" />
             </div>
         </div>
  </div>
  </div>
   
   
</asp:Content>
